import request from '@/utils/request'

// 查询房屋修缮管理列表
export function listPropertymaintenance(query) {
  return request({
    url: '/czj/propertymaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询房屋修缮管理详细
export function getPropertymaintenance(maintenanceid) {
  return request({
    url: '/czj/propertymaintenance/' + maintenanceid,
    method: 'get'
  })
}

// 新增房屋修缮管理
export function addPropertymaintenance(data) {
  return request({
    url: '/czj/propertymaintenance',
    method: 'post',
    data: data
  })
}

// 修改房屋修缮管理
export function updatePropertymaintenance(data) {
  return request({
    url: '/czj/propertymaintenance',
    method: 'put',
    data: data
  })
}

// 删除房屋修缮管理
export function delPropertymaintenance(maintenanceid) {
  return request({
    url: '/czj/propertymaintenance/' + maintenanceid,
    method: 'delete'
  })
}
